package com.lmj.utils;

import com.lmj.dto.DataRequest;
import com.google.gson.Gson;

public class RequestBody {
    public static DataRequest getRequestBody(String request){
        // 解析前端发送的GSON格式
        Gson gson = new Gson();
        return gson.fromJson(request, DataRequest.class);
    }
}
